<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <head th:include="head.html::head">
</head>
<body>
<div id="top" th:include="head.html::top"></div>
<div id="msg" th:text="${msg}"></div>
<form action="/admin/editUsers" method="post">
    <input type="hidden" name="uid" th:value="${users.getUid()}">
    <table>
        <tr><td>用户名称</td><td><input type="text" th:value="${users.getUname()}" name="uname"></td></tr>
        <tr><td>用户密码</td><td><input type="text" th:value="${users.getUpwd()}" name="upwd"></td></tr>
        <tr><td>性别</td>
            <td>
                <input type="radio" name="usex" th:attr="checked =${users.getUsex() == 1}" checked value="男">男
                <input type="radio" name="usex" th:attr="checked =${users.getUsex() != 1}" value="女">女
            </td>
        </tr>
        <tr><td>出生日期</td><td><input type="text" th:value="${users.getUbirth()}" name="ubirth"></td></tr>
        <tr><td>用户所在城市</td><td><textarea th:text="${users.getUcity()}" name="ucity"></textarea></td></tr>
        <tr><td>用户电话</td><td><input type="text" th:value="${users.getUphone()}" name="uphone"></td></tr>
        <tr><td>用户邮箱</td><td><input type="text" th:value="${users.getUemail()}" name="uemail"></td></tr>
        <tr><td>QQ邮箱</td><td><input type="text" th:value="${users.getUqq()}" name="uqq"></td></tr>
        <tr><td>信用值</td><td><input type="text" th:value="${users.getUcredit()}" name="ucredit"></td></tr>
        <tr>
            <td colspan="2">
                <input type="reset" value="重置">
                <input type="submit" value="提交">
            </td>
        </tr>


    </table>
</form>
</body>
</html>